package javanio.buffer;

import java.nio.CharBuffer;

/**
 * Created by IntelliJ IDEA.
 * User: liuliwei
 * Date: 2017-09-18
 * Time: 下午2:45
 * Description: 创建缓冲区的方式
 *
 */
public class BufferTest {


    public static void main(String[] args) {
        CharBuffer charBuffer = CharBuffer.allocate(100);
        char[] myArray = new char[100];
        CharBuffer charBuffer1 = CharBuffer.wrap(myArray);
//        System.out.println(charBuffer1);

        System.out.println((char)0xd6);

    }



}
